package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysRoleMenu;

import java.util.List;
import java.util.Set;

/**
 * 角色业务层
 *
 * @author ruoyi
 */
public interface ISysRoleMenuService {


    /**
     * 获取最底层的菜单
     *
     * @return
     */
    public Set<Long> selectRoleBottomMenu(Long deptId, String roleKey,List<String> projectCodes);

    public List<SysRoleMenu> getDiffRoleMenu(Long deptId, String roleKey, Long[] menuIds,List<String> projectCodes);

    public Set<Long> getRoleMenuContainSelf(Long deptId, String roleKey,List<String> projectCodes);

    public Set<Long> getRoleMenuExcludeSelf(Long deptId, String roleKey,List<String> projectCodes);

    public Set<Long> getRoleMenu(List<Long> deptIds, String roleKey,List<String> projectCodes);

    public Set<Long> getRoleMenu(List<Long> deptIds, String roleKey,List<String> projectCodes, Boolean isOnlyBottomMenu);

    public List<SysRoleMenu> getDiffRoleMenu(Long deptId, String roleKey, List<Long> menuIdList,List<String> projectCodes);
}
